#include <func.h>

enum{
    OD_CD,
    OD_LS,
    OD_PTS,
    OD_GTC,
    OD_RM,
    OD_PWD,
    OD_MD,
    OD_RD
};

typedef struct userinfo_s{
    char username[20];
    char password[50];
}userinfo_t;

typedef struct train_s{
    int status;
    int length;
    char buf[1000];
}train_t;

int login(userinfo_t* userinfo, int sockfd);
int recvn(int sockfd, void *buf, int length);
int recvfile(int sockfd,const char *path);
